package com.learn.emuns;

import lombok.AllArgsConstructor;
import lombok.Getter;

@Getter
@AllArgsConstructor
public enum LearnResultEnums
{

	SUCCESS ("200", "成功"),
	AUTH_FAIL ("SYSTEM.403", "授权失败"),
	NO_PERMISSION ("SYSTEM.00400010.500", "无权限访问"),
	ILLEGAL_TOKEN ("SYSTEM.00400011.500", "无效的token"),

	//管理员错误码
	NOT_OPERATOR ("SYSTEM.11001", "账号不存在或密码错误"),


	//免费产品的错误码
	ADD_FREEPRODUCT ("FREEPRODUCT.10001", "新增产品失败"),
    DELETE_FREEPRODUCT ("FREEPRODUCT.10002","删除免费产品失败"),
    UPDATE_FREEPRODUCT ("FREEPRODUCT.10003","更新免费产品失败"),
	FREE_PRODUCT_NOT_FOUND ("FREEPRODUCT.10004","免费产品不存在"),

	//检验错误码
	NULL("PRODUCT.10005","不能为空值"),
	TIME_RANGE("PRODUCT.10006","结束时间必须晚于开始时间"),
	PRODUCT_ID_NULL("PRODUCT.10001","產品展示名稱不能為空"),
	PRODUCT_ITEM_ID_NULL("PRODUCT.10002","產品內部名稱不能為空"),
	TIME_NULL("PRODUCT.10003","銷售時間不能為空"),
	RESOURCE_POOL_NULL("PRODUCT.10004","資源池不能為空"),
	DESCRIPTION_NULL("PRODUCT.10005","描述不能為空"),
	RENEWAL_LIMIT_NULL("PRODUCT.10006","續約限制不能為空"),




	//產品的錯誤碼
	ADD_PRODUCT("PRODUCT.10001","新增產品失敗"),
	DELETE_PRODUCT ("PRODUCT.10002","删除产品失败"),
	UPDATE_PRODUCT ("PRODUCT.10003","更新产品失败"),
	PRODUCT_NOT_FOUND ("PRODUCT.10004","产品不存在"),


	//单品的错误码
	ADD_PRODUCTS("PRODUCTS.10001","新增单品失敗"),
	UPDATE_PRODUCTS ("PRODUCTS.10002","更新单品失败"),
	PRODUCTS_NOT_FOUND ("PRODUCTS.10003","单品不存在");
	private final String status;
	private final String errMsg;
}